package wh.coach.reposity.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import wh.coach.domain.User2;
import wh.coach.domain.store.ObjectWrapper;

/**
 * @Author xhw
 * @Date 2023/9/26
 * @Version 1.0
 */
@Mapper
public interface User2Mapper {
    void add(User2 user);

    void deleteById(Long userId);

    List<User2> findBySearchName(String searchName);

    List<User2> getAllUsers();

    ObjectWrapper<User2> getUserById(Long userId);

    int update(User2 user);

    void updateUserName(User2 user);
}
